package person.drf.shop.ware.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import person.drf.common.utils.R;

@FeignClient("shop-product")
public interface ProductFeignService {

//    @RequestMapping("/info/{id}")
//    public R info(@PathVariable("id") Long id){
//        SpuInfoEntity spuInfo = spuInfoService.getById(id);
//        return R.ok().put("spuInfo", spuInfo);
//    }
    @RequestMapping("/product/skuinfo/info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);

}
